package com.company.project.controller;


import com.company.project.common.utils.RestUtil;
import com.company.project.pojo.Rest;
import com.company.project.pojo.ServiceCode;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 矛盾 前端控制器
 * </p>
 *
 * @author 任建波
 * @since 2019-08-09
 */
@Api(value = "测试",tags = "测试")
@Controller
@RequestMapping("test")
public class TestController {

    HttpServletRequest request;

    @ApiOperation(value = "测试")
    @RequestMapping(value = "test", method = RequestMethod.POST)
    @ResponseBody
    public Rest test(@RequestParam("arr[]") Integer[] arr){

        return RestUtil.rest(ServiceCode.CODE_200, "成功", arr);
    }

}

